package com.leadingsoft.core.dto;

public class BaseQuery {
	private int page;
	private int size;
	private String sort;

	@Override
	public String toString() {
		return "QueryList [page=" + page + ", size=" + size + ", sort=" + sort + "]";
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public int getStart() {
		return this.getPage() * this.getSize();
	}
}
